/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package com.youan.log.modules.statistical.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDate;

/**
 * 实体类
 *
 * @author BladeX
 * @since 2021-03-05
 */
@Data
@ApiModel(value = "LogStatistical对象", description = "LogStatistical对象")
public class LogStatistical implements Serializable {

	private static final long serialVersionUID = 1L;

	private Long id;
	/**
	* 访问日期
	*/
	@ApiModelProperty(value = "访问日期")
	@DateTimeFormat(
			pattern = "yyyy-MM-dd"
	)
	@JsonFormat(
			pattern = "yyyy-MM-dd"
	)
	private LocalDate visitDate;
	private String sourceIp;
	private String destIp;
	/**
	* 访问方向
	*/
	@ApiModelProperty(value = "访问方向")
	private String visitDirection;
	/**
	* 事件类型
	*/
	@ApiModelProperty(value = "事件类型")
	private String issueType;
	/**
	* 访问次数
	*/
	@ApiModelProperty(value = "访问次数")
	private Integer visitNumber;

	/**
	 * 访问次数
	 */
	@ApiModelProperty(value = "源ip国家")
	private String sourceCountry;

	/**
	 * 访问次数
	 */
	@ApiModelProperty(value = "源省份")
	private String sourceProvince;

	/**
	 * 访问次数
	 */
	@ApiModelProperty(value = "源城市")
	private String sourceCity;

	/**
	 * 访问次数
	 */
	@ApiModelProperty(value = "访问次数")
	private String destCountry;

	/**
	 * 访问次数
	 */
	@ApiModelProperty(value = "访问次数")
	private String destProvince;

	/**
	 * 访问次数
	 */
	@ApiModelProperty(value = "访问次数")
	private String destCity;

	/**
	 * 第一次出现
	 */
	@ApiModelProperty(value = "第一次出现")
	private String firstOccurrenceTime;

	/**
	 * 最后一次出现
	 */
	@ApiModelProperty(value = "最后一次出现")
	private String latestOccurrenceTime;
}
